<?php

echo $javascript->link('eventos850s_edit');

?>
<?php echo $this->Form->create('Eventos850');?>
<fieldset><legend>Evento VIH/SIDA</legend>
<table>
	<tr>
		<td><?php
		$optionsmecanismo = array(
			 'Sexual' => array(
				 '1'=>'Heterosexual',
				 '2'=>'Homosexual',
				 '3'=>'Bisexual',
		),
			 'Perinatal' => array(
				 '4'=>' Perinatal',
				 '5'=>'Lactancia'
				 ),
			 'Parental' => array(
				 '6'=>'Transfusion Sanguinea',
				 '7'=>'Usuarios drogas IV'
				 ),
			 'Otros' => array(
				 '8'=>'Accidente de trabajo',
				 '9'=>'No definido'
				 ));
				 echo $this->Form->input('mecanismo_probable_de_transmision', array('options' => $optionsmecanismo, 'default'=>'9'));
				 ?></td>
		<td><?php 
		$optionsestadoclinico = array(
			'1'=>'VIH',
			'2'=>'SIDA',
			'3'=>'Muerto',
		);
		echo $this->Form->input('estado_clinico', array('options' => $optionsestadoclinico, 'default'=>'1'));
		?></td>
	</tr>
	<tr>
		<td><?php echo $this->Form->input('hijos_menores_de_18_anos');?></td>
		<td><?php echo $this->Form->input('hijas_menores_de_18_anos');?></td>
	</tr>
</table>
</fieldset>
<fieldset>
<legend>Reportes</legend>
<div id="reportes"></div>
</fieldset>
<fieldset>
<legend>Enrermedades asociadas</legend>
<?php
$selected=array();
if (isset($enfermedades)) $selected=$enfermedades;
 echo $form->input('Enfermedad',array('options'=>$enfermedades_defecto,'multiple' => 'checkbox','selected'=>$selected,'label'=>''))?>
</fieldset>
<?php
echo $ajax->submit('Finalizar', array('url'=> array( 'controller'=>'eventos850s','action'=>'edit',$this->data['Eventos850']['evento_id']), 'update' => 'DialogoEnvio','after'=>'$("#DialogoEnvio").dialog("open")'));
echo $form->end();?>

<?php 
echo $html->link('',array('controller'=>'r850s','action'=>'viewAll',$this->data['Eventos850']['evento_id']),array('class'=>'ui-helper-hidden','id'=>'reportesLink'));
echo $html->link('',array('controller'=>'r850s','action'=>'ajaxAdd',$this->data['Eventos850']['evento_id']),array('class'=>'ui-helper-hidden','id'=>'reportesFormAdd'));
echo $html->link('',array('controller'=>'r850s','action'=>'ajaxEdit',$this->data['Eventos850']['evento_id']),array('class'=>'ui-helper-hidden','id'=>'reportesFormEdit'));
?>
<script type='text/javascript'>inicio850_edit();</script>
